<?php
/****************************************************************************

	COPYRIGHT(C) WWW.MAXSI.DK, MAXSI SOFTWARE, SORTIE 2009
	ALL RIGHTS RESERVED

	Maxsi Distribution Shared/ Branch
	Scripts shared by the MasterServer/ and ContentServer/ Branch of the Maxsi
	Distribution Server-Side Code Branches.
		
	MaxsiDataContainer.php
	A binary-safe text-based data container.
	
****************************************************************************/

$mis_Headers_Sent	=	false;

function	mis_SendHeaders()
{
	global	$mis_Headers_Sent;
	
	if ( $mis_Headers_Sent ) { return; }
	
	$mis_Headers_Sent	=	true;

	echo "// Generated by MaxsiDistribution/MaxsiInstallScript2.php on ".date('M d Y')."\r\nApplication/x-MaxsiEngineInstallerScript/2.0\r\nApplication: x-MaxsiEngineMaxsiInstaller\r\n\r\n";
}

function	mis_SendFunction($Function, $Parameters)
{
	mis_SendHeaders();
	
	echo $Function;
	
	if ( count($Parameters) )
	{
		for ( $I = 0; $I < count($Parameters); $I++)
		{
			echo ' "'.$Parameters[$I].'"';			
		}
	}
	echo "\r\n";
}

function	mis_SendFunctionDie($Function, $Parameters)
{
	mis_SendFunction($Function,$Parameters);
	die('');
}
?>